//
//  showImageDetailViewController.m
//  Wedding fantastic
//
//  Created by dllo on 15/7/2.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "showImageDetailViewController.h"
#import "MBProgressHUD.h"

#define kHeight [UIScreen mainScreen].bounds.size.height
#define kWidth [UIScreen mainScreen].bounds.size.width

@interface showImageDetailViewController ()

@end

@implementation showImageDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    // 导航栏不透明
    self.navigationController.navigationBar.translucent = NO;
    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kHeight - 64 - 49)];
    // 添加小菊花
    MBProgressHUD *hub = [MBProgressHUD showHUDAddedTo:self.view animated:YES];
    hub.labelText = @"loading";
    // 显示小菊花
    [hub show:YES];
    // 请求网址
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:self.webURL]];
    // 请求完毕隐藏
    [hub hide:YES];
    [self.view addSubview:webView];
    // 重新请求数据
    [webView loadRequest:request];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
